import http from "../utils/request.js";

export const xhs_list = (data) => {
  return http.post(`/v1/xhs/user/list`, { ...data });
};
// 获取浏览器配置
export const get_ads = (data) => {
  return http.post(`/v1/xhs/ads/get`, { ...data });
};

export const task_list = (data) => {
  return http.post(`/v1/xhs/task/list`, { ...data });
};

export const ads_sc = (data) => {
  return http.post(`/v1/xhs/ads/sc`, { ...data });
};

// ○上报ads_power创建的id
export const ads_update = (data) => {
  return http.post(`/v1/xhs/ads/update`, { ...data });
};

// 创建小红书用户
export const user_create = (data) => {
  return http.post(`/v1/xhs/user/create`, { ...data });
};

// 删除小红书用户
export const user_delete = (data) => {
  return http.post(`/v1/xhs/user/delete`, { ...data });
};

// 更新小红书用户
export const user_update = (data) => {
  return http.post(`/v1/xhs/user/update`, { ...data });
};

// 获取笔记列表数据
export const note_list = (data) => {
  return http.post(`/v1/xhs/note/list`, { ...data });
};

// 获取待执行任务
export const task_wait = (data) => {
  return http.post(`/v1/xhs/task/wait`, { ...data });
};

// 创建小红书任务
export const task_create = (data) => {
  return http.post(`/v1/xhs/task/create`, { ...data });
};

// 删除小红书任务
export const task_delete = (data) => {
  return http.post(`/v1/xhs/task/delete`, { ...data });
};

//上报任务
export const task_report = (data) => {
  return http.post(`/v1/xhs/task/report`, { ...data });
};

// 获取养号列表数据
export const account_maintenance_task_list = (data) => {
  return http.post(`/v1/xhs/account_maintenance_task/list`, { ...data });
};


// 创建养号任务
export const account_maintenance_task_create = (data) => {
  return http.post(`/v1/xhs/account_maintenance_task/create`, { ...data });
};


// 删除养号任务
export const account_maintenance_task_delete = (data) => {
  return http.post(`/v1/xhs/account_maintenance_task/delete`, { ...data });
};


// 养号上报
export const account_maintenance_task_report = (data) => {
  return http.post(`/v1/xhs/account_maintenance_task/report`, { ...data });
};

